<!DOCTYPE html>
<html lang="zh-CN">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title></title>
        <meta name="HandheldFriendly" content="True" />
        <link href="../css/bootstrap.min.css?hash=08df9a96" rel="stylesheet" type="text/css" />
        <link href="../css/bootstrap-table.min.css?hash=d819dada" rel="stylesheet" type="text/css" />
        <link href="../css/main.css?hash=58d3930d" rel="stylesheet" type="text/css" />
        <link href="../css/common_editor.css?hash=f3c318b2" rel="stylesheet" type="text/css" />
        <link href="../css/map_editor.css?hash=59eb2f3f" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <form class="form-horizontal">
            <fieldset>
                <legend id="legend">
                    <div id="form-name" class="pull-left">
                    </div>
                    <div class="pull-right">
                        <button id="exit-button" type="button" class="btn btn-default right hidden">Exit</button>
                        <button id="save-record" type="button" class="btn btn-success right hidden">Save</button>
                        <button id="delete-record" type="button" class="btn btn-danger right hidden">Delete</button>
                    </div>
                </legend>
            </fieldset>
        </form>
        <div id="editor-window">
            <div id="window-left">
                <div id="window-map">
                    <div id="container">
                        <div id="element-selector" class="block">
                            <p id="selector-title">添加房间</p>
                            <div id="new-element-room" class="new-element element-room"></div>
                        </div>
                        <svg id="map-svg" version="1.1"  xmlns="http://www.w3.org/2000/svg">
                        </svg>
                        <img id="map-image" src="../images/blank_map.png">
                    </div>
                </div>
            </div>
            <div id="window-right">
                <div class="block">
                    <p class="block-title">上传地图</p>
                    <input id="image-input" class="image-input-control" type="file">
                    <input class="editor-control" type="hidden">
                    <input id="upload-background" class="button-control" type="button" value="Upload">
                    <input id="delete-background" class="button-control" type="button" value="Delete">
                </div>
                <div class="block">
                    <p class="block-title">设置地图大小</p>
                    <p>
                        <span>宽度</span>
                        <input id="image-width" class="editor-control text-input-control" type="text">
                    </p>
                    <p>
                        <span>高度</span>
                        <input id="image-height" class="editor-control text-input-control" type="text">
                    </p>
                    <input id="set-background-size" class="button-control" type="button" value="Set">
                    <input id="restore-background-size" class="button-control" type="button" value="Restore">
                </div>
                <div class="block">
                    <p>
                        <input type="checkbox" id="use-grid">
                        <span>对齐网格</span>
                        <input id="grid-size" class="editor-control text-input-control" type="text">
                    </p>
                </div>
                <div class="block">
                    <input id="edit-area" class="button-control" type="button" value="编辑区域属性">
                </div>
            </div>
        </div>
        <script src="../libs/jquery-3.2.1.min.js?hash=1055018c" type="text/javascript"></script>
        <script src="../libs/bootstrap.min.js?hash=b07a5be9" type="text/javascript"></script>
        <script src="../libs/bootstrap-table.min.js?hash=f367ac61" type="text/javascript"></script>
        <script src="../config.js?hash=b0778795" type="text/javascript"></script>
        <script src="../service/service.js?hash=002a39a9" type="text/javascript"></script>
        <script src="../utils/utils.js?hash=b5e16be9" type="text/javascript"></script>
        <script src="../controller/map_editor.js?hash=0e209cdf" type="text/javascript"></script>
        <script type="text/javascript">
            var controller = new MapEditor();
            $(document).ready(function() {controller.init()});
        </script>
    </body>

</html>
